package com.dw.demo.feign.fallback;

import com.dw.demo.feign.service.RestTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * feign熔断返回接口实现类
 */
@Component
public class FallBackClass implements SchedualServiceClient {

    @Autowired
    private RestTemplateService restTemplateService;

    public String hello(){
        return restTemplateService.returnHao123();
    }
}
